﻿using FactoryLib.abstracts;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace FactoryLib.services.Factory
{
    /// <summary>
    /// 情人节工厂
    /// </summary>
    public class QiXiFestivalGameProvider : IGameProvider
    {
        private IEnumerable<Ihero> _iheros;

        public QiXiFestivalGameProvider(IEnumerable<Ihero> iheroes)
        {
            Console.WriteLine("----------游戏开始-------------");
            _iheros = iheroes;
        }
        public void GameEnd()
        {
            Console.WriteLine("-------游戏结束---------");
        }

        public void GameStart()
        {
            this.LoadActivity();
            this.LoadTopic();
            this.LoadMusic();

            Thread.Sleep(1000);
            Console.WriteLine("----------欢迎来到王者荣耀-------------");
            Thread.Sleep(1000);
            Console.WriteLine("----------敌军还有三十秒到达战场，请做好准备-------------");
            Thread.Sleep(1000);
            Console.WriteLine("----------全军出击-------------");
            Thread.Sleep(1000);
        }

        public void LoadActivity()
        {
            Console.WriteLine("加载充值活动:情人节多狗粮，狗粮5折抢购");
        }

        public void LoadMusic()
        {
            Console.WriteLine("加载游戏音乐：分手快乐.mp3 正在播放中...");
        }

        public void LoadTopic()
        {
            Console.WriteLine("加载游戏主题：情人节游戏主题，全新吕布貂蝉限定皮肤开售，欢迎抢购");
        }
    }
}
